Learning Visual Basic .NET by Jesse Liberty

Learning Visual Basic .NET by Jesse Liberty
Author: Jesse Liberty [Jesse Liberty]
Language: eng
Format: epub
Tags: COMPUTERS / Programming Languages / Visual BASIC
ISBN: 9780596103873
Publisher: O'Reilly Media
Published: 2009-02-08

Note


Example 11-2 uses an array, which is a collection of objects, all of the same type. You create an array by indicating the type of objects to hold and then allocating space for a given number of those objects. For example, the following code declares winArray to be an array of three Window objects:

Dim winArray(3) As Window

You access the members of the array with parentheses. The first element is accessed with winArray(0), the second with winArray(1), and so forth. Arrays are explained in detail in Chapter 14.